.class public Lcom/brixd/niceapp/activity/AlbumHistoryActivity;
.super Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;
.source "AlbumHistoryActivity.java"

# interfaces
.implements Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;",
        "Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2",
        "<",
        "Landroid/widget/ListView;",
        ">;"
    }
.end annotation


# instance fields
.field private mAlbumAdapter:Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;

.field private mAlbumHolderModels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/AlbumHolderModel;",
            ">;"
        }
    .end annotation
.end field

.field private mBackBtn:Landroid/widget/Button;

.field private mHasNext:Z

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mIsRequesting:Z

.field private mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

.field private mLoadingFailView:Landroid/view/View;

.field private mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

.field private mPage:I

.field private mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

.field private mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

.field private mScreenWidth:I

.field private mShadowHeaderView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .registers 3

    .prologue
    const/4 v1, 0x0

    .line 46
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;-><init>()V

    .line 58
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumHolderModels:Ljava/util/List;

    .line 63
    iput v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    .line 64
    iput-boolean v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mIsRequesting:Z

    .line 65
    iput-boolean v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mHasNext:Z

    .line 67
    new-instance v0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$1;-><init>(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    .line 256
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mShadowHeaderView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    return-object v0
.end method

.method static synthetic access$1000(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mScreenWidth:I

    return v0
.end method

.method static synthetic access$1100(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Lcom/nostra13/universalimageloader/core/ImageLoader;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    return-object v0
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->onRefreshComplete()V

    return-void
.end method

.method static synthetic access$302(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 46
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mHasNext:Z

    return p1
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    return v0
.end method

.method static synthetic access$410(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)I
    .registers 3
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    return v0
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumHolderModels:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$502(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;Ljava/util/List;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;
    .param p1, "x1"    # Ljava/util/List;

    .prologue
    .line 46
    iput-object p1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumHolderModels:Ljava/util/List;

    return-object p1
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumAdapter:Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;

    return-object v0
.end method

.method static synthetic access$702(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 46
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mIsRequesting:Z

    return p1
.end method

.method static synthetic access$800(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mLoadingFailView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$900(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AlbumHistoryActivity;

    .prologue
    .line 46
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->refreshData()V

    return-void
.end method

.method private fetchData()V
    .registers 5

    .prologue
    .line 198
    iget v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    .line 199
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iget v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    const/16 v2, 0x14

    new-instance v3, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$5;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$5;-><init>(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V

    invoke-interface {v0, v1, v2, v3}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->listAlbums(IILretrofit/Callback;)V

    .line 250
    return-void
.end method

.method private initData()V
    .registers 5

    .prologue
    const v3, 0x7f0201c5

    const/4 v2, 0x1

    .line 103
    new-instance v1, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    invoke-virtual {v1, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    .line 104
    invoke-virtual {v1, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnLoading(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    sget-object v2, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    .line 105
    invoke-virtual {v1, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v1, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    new-instance v2, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v2}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    invoke-virtual {v1, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v1

    iput-object v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 106
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v1

    iput-object v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 108
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v1

    const-class v2, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v1, v2}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 110
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getCachedAlbumHistoryModel()Ljava/util/List;

    move-result-object v0

    .line 111
    .local v0, "list":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/AlbumHolderModel;>;"
    if-eqz v0, :cond_5c

    .line 112
    iput-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumHolderModels:Ljava/util/List;

    .line 114
    :cond_5c
    return-void
.end method

.method private initPostCreate()V
    .registers 1

    .prologue
    .line 154
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->refreshData()V

    .line 155
    return-void
.end method

.method private initWidgetActions()V
    .registers 3

    .prologue
    .line 145
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mBackBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$2;-><init>(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 151
    return-void
.end method

.method private initWidgets()V
    .registers 7

    .prologue
    .line 122
    const v2, 0x7f030008

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->setContentView(I)V

    .line 123
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->initScreenMatrix()V

    .line 125
    const v2, 0x7f0a002d

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mBackBtn:Landroid/widget/Button;

    .line 126
    const v2, 0x7f0a0049

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mLoadingFailView:Landroid/view/View;

    .line 127
    const v2, 0x7f0a004a

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mShadowHeaderView:Landroid/view/View;

    .line 128
    const v2, 0x7f0a0040

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    .line 129
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v2, p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnRefreshListener(Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2;)V

    .line 130
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v2}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->getRefreshableView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ListView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 131
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v2}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->getRefreshableView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ListView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 133
    new-instance v0, Landroid/view/View;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    invoke-direct {v0, v2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 134
    .local v0, "headerView":Landroid/view/View;
    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, 0x1

    const/high16 v4, 0x40a00000

    .line 135
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->getScreenDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v5

    invoke-static {v3, v4, v5}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v3

    float-to-int v3, v3

    invoke-direct {v1, v2, v3}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    .line 136
    .local v1, "layoutParams":Landroid/widget/AbsListView$LayoutParams;
    invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 137
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v2}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->getRefreshableView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ListView;

    invoke-virtual {v2, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 138
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v2}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->getRefreshableView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ListView;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 140
    new-instance v2, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;-><init>(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumAdapter:Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;

    .line 141
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mAlbumAdapter:Lcom/brixd/niceapp/activity/AlbumHistoryActivity$AlbumAdapter;

    invoke-virtual {v2, v3}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 142
    return-void
.end method

.method private onRefreshComplete()V
    .registers 2

    .prologue
    .line 253
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->onRefreshComplete()V

    .line 254
    return-void
.end method

.method private refreshData()V
    .registers 5

    .prologue
    .line 158
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$3;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$3;-><init>(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 164
    return-void
.end method


# virtual methods
.method public initScreenMatrix()V
    .registers 3

    .prologue
    .line 117
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->getScreenDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    .line 118
    .local v0, "mDisplayMetrics":Landroid/util/DisplayMetrics;
    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v1, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mScreenWidth:I

    .line 119
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 94
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 96
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->initData()V

    .line 97
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->initWidgets()V

    .line 98
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->initWidgetActions()V

    .line 99
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->initPostCreate()V

    .line 100
    return-void
.end method

.method public onPullDownToRefresh(Lcom/handmark/pulltorefresh/library/PullToRefreshBase;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/handmark/pulltorefresh/library/PullToRefreshBase",
            "<",
            "Landroid/widget/ListView;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 167
    .local p1, "pullToRefreshBase":Lcom/handmark/pulltorefresh/library/PullToRefreshBase;, "Lcom/handmark/pulltorefresh/library/PullToRefreshBase<Landroid/widget/ListView;>;"
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mIsRequesting:Z

    if-eqz v0, :cond_5

    .line 176
    :goto_4
    return-void

    .line 170
    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mIsRequesting:Z

    .line 173
    const/4 v0, 0x0

    iput v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mPage:I

    .line 175
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->fetchData()V

    goto :goto_4
.end method

.method public onPullUpToRefresh(Lcom/handmark/pulltorefresh/library/PullToRefreshBase;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/handmark/pulltorefresh/library/PullToRefreshBase",
            "<",
            "Landroid/widget/ListView;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 179
    .local p1, "pullToRefreshBase":Lcom/handmark/pulltorefresh/library/PullToRefreshBase;, "Lcom/handmark/pulltorefresh/library/PullToRefreshBase<Landroid/widget/ListView;>;"
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mIsRequesting:Z

    if-eqz v0, :cond_5

    .line 195
    :goto_4
    return-void

    .line 183
    :cond_5
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mHasNext:Z

    if-nez v0, :cond_16

    .line 184
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity$4;-><init>(Lcom/brixd/niceapp/activity/AlbumHistoryActivity;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_4

    .line 194
    :cond_16
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AlbumHistoryActivity;->fetchData()V

    goto :goto_4
.end method
